package com.wtc.interface_;



public class MemberInnerClass01 {
    public static void main(String[] args) {
        Outer outer = new Outer();
//        outer.test();
        Outer.Inner inner = outer.new Inner();
        inner.say();
        outer.getInnerClass().say();
    }
}
class Outer {
    private int n1 = 8;
    public String name = "马可";
    public class Inner {
        public void say() {
            System.out.println("n1 = " + n1 + "，姓名 = " + name);
        }
    }
    public  Inner getInnerClass() {
        return new Inner();
    }
    public void test() {
        Inner inner = new Inner();
        inner.say();
    }
}
